package com.ruoyi.project.system.third.domain;

import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;

import java.io.Serializable;
import java.util.List;

/**
 * 第三方认证表 sys_third
 *
 * @author renzhihao
 * @date 2023/11/30 11:28
 */
public class Third extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 第三方ID
     */
    private Long thirdId;

    /**
     * 认证地址
     */
    private String authUrl;

    /**
     * 目的服务地址
     */
    private String serverUrl;

    /**
     * 获取token地址
     */
    private String tokenUrl;

    /**
     * 获取用户信息地址
     */
    private String profileUrl;

    /**
     * 渲染方式
     */
    private Integer render;

    /**
     * clientId
     */
    private String clientId;

    /**
     * clientSecret
     */
    private String clientSecret;

    /**
     * 是否签名
     */
    private Integer sign;

    /**
     * 是否加密
     */
    private Integer enc;

    /**
     * 加密方式
     */
    private String encType;

    /**
     * 签发方式
     */
    private String issueType;

    /**
     * 当前服务地址
     */
    private String curUrl;

    /**
     * 签发地址(REDIRECT)
     */
    private String redirectIssueUrl;

    /**
     * 签发地址(POST_MESSAGE)
     */
    private String postMessageIssueUrl;

    /**
     * 签发地址(SOAP)
     */
    private String soapIssueUrl;

    private String authType;

    private String clientName;

    private String dataKey;

    private String appId;

    private String appSecret;

    private Integer accountSync;

    private Integer ssoSync;

    private String apiKey;

    private String apiEnc;


    private List<String> authTypeList;

    public Long getThirdId() {
        return thirdId;
    }

    public void setThirdId(Long thirdId) {
        this.thirdId = thirdId;
    }

    public String getAuthUrl() {
        return authUrl;
    }

    public void setAuthUrl(String authUrl) {
        this.authUrl = authUrl;
    }

    public String getServerUrl() {
        return serverUrl;
    }

    public void setServerUrl(String serverUrl) {
        this.serverUrl = serverUrl;
    }

    public String getTokenUrl() {
        return tokenUrl;
    }

    public void setTokenUrl(String tokenUrl) {
        this.tokenUrl = tokenUrl;
    }

    public String getProfileUrl() {
        return profileUrl;
    }

    public void setProfileUrl(String profileUrl) {
        this.profileUrl = profileUrl;
    }

    public Integer getRender() {
        return render;
    }

    public void setRender(Integer render) {
        this.render = render;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getClientSecret() {
        return clientSecret;
    }

    public void setClientSecret(String clientSecret) {
        this.clientSecret = clientSecret;
    }

    public Integer getSign() {
        return sign;
    }

    public void setSign(Integer sign) {
        this.sign = sign;
    }

    public Integer getEnc() {
        return enc;
    }

    public void setEnc(Integer enc) {
        this.enc = enc;
    }

    public String getEncType() {
        return encType;
    }

    public void setEncType(String encType) {
        this.encType = encType;
    }

    public String getIssueType() {
        return issueType;
    }

    public void setIssueType(String issueType) {
        this.issueType = issueType;
    }

    public String getCurUrl() {
        return curUrl;
    }

    public void setCurUrl(String curUrl) {
        this.curUrl = curUrl;
    }

    public String getRedirectIssueUrl() {
        return redirectIssueUrl;
    }

    public void setRedirectIssueUrl(String redirectIssueUrl) {
        this.redirectIssueUrl = redirectIssueUrl;
    }

    public String getPostMessageIssueUrl() {
        return postMessageIssueUrl;
    }

    public void setPostMessageIssueUrl(String postMessageIssueUrl) {
        this.postMessageIssueUrl = postMessageIssueUrl;
    }

    public String getSoapIssueUrl() {
        return soapIssueUrl;
    }

    public void setSoapIssueUrl(String soapIssueUrl) {
        this.soapIssueUrl = soapIssueUrl;
    }

    public String getAuthType() {
        return authType;
    }

    public void setAuthType(String authType) {
        this.authType = authType;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public String getDataKey() {
        return dataKey;
    }

    public void setDataKey(String dataKey) {
        this.dataKey = dataKey;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public Integer getAccountSync() {
        return accountSync;
    }

    public void setAccountSync(Integer accountSync) {
        this.accountSync = accountSync;
    }

    public Integer getSsoSync() {
        return ssoSync;
    }

    public void setSsoSync(Integer ssoSync) {
        this.ssoSync = ssoSync;
    }

    public String getApiKey() {
        return apiKey;
    }

    public void setApiKey(String apiKey) {
        this.apiKey = apiKey;
    }

    public String getApiEnc() {
        return apiEnc;
    }

    public void setApiEnc(String apiEnc) {
        this.apiEnc = apiEnc;
    }

    public List<String> getAuthTypeList() {
        return authTypeList;
    }

    public void setAuthTypeList(List<String> authTypeList) {
        this.authTypeList = authTypeList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("thirdId", thirdId)
                .append("authUrl", authUrl)
                .append("serverUrl", serverUrl)
                .append("tokenUrl", tokenUrl)
                .append("profileUrl", profileUrl)
                .append("render", render)
                .append("clientId", clientId)
                .append("clientSecret", clientSecret)
                .append("sign", sign)
                .append("enc", enc)
                .append("encType", encType)
                .append("issueType", issueType)
                .append("curUrl", curUrl)
                .append("redirectIssueUrl", redirectIssueUrl)
                .append("postMessageIssueUrl", postMessageIssueUrl)
                .append("soapIssueUrl", soapIssueUrl)
                .append("authType", authType)
                .append("clientName", clientName)
                .append("dataKey", dataKey)
                .append("appId", appId)
                .append("appSecret", appSecret)
                .append("accountSync", accountSync)
                .append("ssoSync", ssoSync)
                .append("apiKey", apiKey)
                .append("apiEnc", apiEnc)
                .append("authTypeList", authTypeList)
                .toString();
    }
}
